/**
 * Created Jul 21, 2006
 */
package org.xdoclet.plugin.hibernate;

import java.io.File;
import java.net.URL;

import org.generama.MetadataProvider;
import org.xdoclet.QDoxMetadataProvider;


/**
 * Test case for a composite ID that specifies the composite id class and
 * returns an interface.
 * 
 * @author Steve Ungerer
 */
public class InterfaceCompositeIdTestCase extends AbstractHibernateMappingTestCase {
    protected URL getExpected() {
        return getResourceRelativeToThisPackage("compositeId/InterfaceCompositeIdBean.hbm.xml");
    }

    protected MetadataProvider createMetadataProvider() {
        URL reader = getResourceRelativeToThisPackage("compositeId/separated_pk_class");
        return new QDoxMetadataProvider(new File(reader.getPath()));
    }
}
